export default {
    data() {
        return {
            title: '错误详情',
            errorDetail: {}
        };
    },
    computed: {

    },
    methods: {
        async init (){
            const res = await this.getErrorDetail();
        },
        /**
         * 获取错误详情
        */
        getErrorDetail(){
            return new Promise ((resolve, reject)=>{
                const errorId = this.$route.params.errorId;
                const that = this;
                this.$axios.get('/api/getRecordDetail', {params: {errorId: errorId}}).then((res)=>{
                    // console.log(res)
                    that.errorDetail = res.data.data
                    resolve(res.data.data)
                })
            })

        }
    },
    mounted() {
        this.init();
        console.log(this.$route.params)
    }
};
